home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------------------
- // MDemoDialogs.cp
- // Copyright © 1988-98 by Apple Computer, Inc. All rights reserved.
- //----------------------------------------------------------------------------------------
-
- /*
- Change History:
- 07/16/98 [TY] Added high-level exception handling.
- */
-
- #ifndef __UDEMODIALOGS__
- #include "UDemoDialogs.h"
- #endif
-
- // MacApp
-
- #ifndef __UDIALOG__
- #include "UDialog.h"
- #endif
-
- #ifndef __UDRAGDROP__
- #include "UDragDrop.h"
- #endif
-
- #ifndef __UFLOATWINDOW__
- #include "UFloatWindow.h"
- #endif
-
- #ifndef __UGEOMETRY__
- #include "UGeometry.h"
- #endif
-
- #ifndef __UGRIDVIEW__
- #include "UGridView.h"
- #endif
-
- #ifndef __UPRINTING__
- #include "UPrinting.h"
- #endif
-
- #ifndef __UTEVIEW__
- #include "UTEView.h"
- #endif
-
- //----------------------------------------------------------------------------------------
- // main:
- //----------------------------------------------------------------------------------------
- void main()
- {
- try
- {
- InitUMacApp(6); // Initialize MacApp; 6 calls to MoreMasters
-
- InitUTEView();
- InitUDialog();
- InitUDragManager();
- InitUGridView();
- InitUFloatWindow();
- InitUPrinting();
-
- TTestApplication aTestApplication;
- aTestApplication.Run();
- }
- catch(CException_AC& theException)
- {
- DoCatchMessageAndStop_AC(theException);
- ::BailOutAlert(theException);
- }
- catch(exception& ex)
- {
- DoCatchISOMessageAndStop_AC(ex);
- ::BailOutAlert(ex);
- }
- catch(...)
- {
- DoCatchForeignMessageAndStop_AC();
- ::BailOutAlert();
- }
- }
-
- //----------------------------------------------------------------------------------------
- // End of MDemoDialogs.cp
-